package util;

import redis.clients.jedis.Jedis;

public class RedisUtil {
    public String getPassWord(String Key1){

        String Key = Key1;
        String PassWord;
        Jedis jedis = new Jedis("127.0.0.1",6379);
        PassWord = jedis.get(Key);
        if (PassWord == null){
            jedis.close();
            return "***";
        }else {
            jedis.close();
            return PassWord;
        }
    }
}
